package com.lcm.basic.p7.collection;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

/**
 * @author Coder-lcm
 * @date 2021/4/3
 */
public class ForeachDemo {
    public static void main(String[] args) {
        Collection c = new ArrayList();
        c.add("Dsadad");
        c.add(2133);
        c.add(Boolean.TRUE);
        for (Object o : c) {
            System.out.println(o);
        }
    }
}
